package computer;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.border.BevelBorder;

public class FileCopy extends JFrame implements ActionListener{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public FileCopy() {
		setVisible(true);
		setSize(800, 800);
		setLocation(500, 200);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setLayout(null);
		
		String[] str={"选择文件","复制文件"};
		for(int i=0;i<str.length;i++){
			JLabel label=new JLabel(str[i]);
			label.setBounds(50, 50+i*40, 100, 30);
			add(label);
			
			JTextField tf=new JTextField();
			tf.setBounds(200, 50+i*40, 300, 30);
			tf.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
			add(tf);
			
			JButton bt=new JButton("...");
			bt.setBounds(600, 50+i*40, 50, 30);
			bt.setBackground(new Color(0xFFF333));
			bt.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
			
			add(bt);
			
		}
		JButton bf=new JButton("复制文件");
		bf.setBounds(200, 630, 400, 30);
		bf.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		bf.setBackground(new Color(0xFFF333));

		add(bf);
		
				
		
		
	}
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				new FileCopy();
				
			}
		});
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
	

}
